<?php #//AJAX PHP PENNY AUCTION v.1.3

#///////////////////////////////////////////////////////////
#//  COPYRIGHT 2009 Aaron Helmlinger ALL RIGHTS RESERVED  //
#///////////////////////////////////////////////////////////
                        include "../includes/config.inc.php";
             
                       include "loggedin.inc.php";
                 
                               
          if($_POST[update])  {


                    $reserve1 = $_POST[reserve]; 
                    $savings1 = $_POST[savings]; 
                    $autobidder1 = $_POST[autobidder]; 
                      $page_counter1 = $_POST[pagecounter]; 
   



 $query2="UPDATE PHPAUCTIONXL_version_2_0 SET hide_reserve='$reserve1' WHERE id='1'";
       
mysql_query($query2);

 
        $query2="UPDATE PHPAUCTIONXL_version_2_0 SET hide_savings='$savings1' WHERE id='1'";
       
mysql_query($query2);


        $query2="UPDATE PHPAUCTIONXL_version_2_0 SET hide_autobidder='$autobidder1' WHERE id='1'";
       
mysql_query($query2);

       $query2="UPDATE PHPAUCTIONXL_version_2_0 SET hide_pagecounter='$page_counter1' WHERE id='1'";
       
mysql_query($query2);
       
         }     
       
         $query_settings = "select * from PHPAUCTIONXL_version_2_0 where id='1'";
                             $query_settings2 =  mysql_query ($query_settings);
                                $reserve1 = mysql_result($query_settings2,0,"hide_reserve");
                               $savings1  = mysql_result($query_settings2,0,"hide_savings");
                               $autobidder1 = mysql_result($query_settings2,0,"hide_autobidder");
                                        $page_counter1 = mysql_result($query_settings2,0,"hide_pagecounter");
                                        
                                        
      $ERR = $MSG_AJAX_ADMIN_HOMEPAGE_CONTENT_ERROR;
  ?>
  






<HTML>
<HEAD>
<link rel='stylesheet' type='text/css' href='style.css' />
<link href="css/main.css" rel="stylesheet" type="text/css">
</HEAD>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">





<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td>
    
       <? // -------------------------- Admin Tool Heading --------------------------------------?>
       
       
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="titulo">
        <tr> 
     
          
          
   <td class="icono"><img src="images/graph_icon2.gif" width="30" height="26"></td>
                    <td class="breadcrumbs"><p><span><?=$MSG_25_0009?></span>&nbsp;&gt;&gt;&nbsp;<? print $MSG_AJAX_ADMIN_ITEM_PAGE_CONTENT_TITLE; ?></p></td>
              </tr>
      </table>
      
      
      
      </td>
  </tr>
  <tr>
    <td align="center" valign="middle">&nbsp;</td>
  </tr>
    <tr> 
    <td align="center" valign="middle">
    
    
    
<TABLE BORDER=0 WIDTH=100% CELLPADDING=0 CELLSPACING=0 BGCOLOR="#FFFFFF">
<TR>
<TD align="center">
<BR>
<FORM NAME=conf ACTION=<?=basename($_SERVER['PHP_SELF'])?> METHOD=POST>


  <? // -------------------------- LIGHT BLUE TITLE BAR --------------------------------------?>

	<TABLE WIDTH="95%" BORDER="0" CELLSPACING="0" CELLPADDING="0"  class="base" ALIGN="CENTER" style="border:1px solid #ccc;">
		<TR>
			<TD ALIGN=CENTER class=title>
				<p><? print $MSG_AJAX_ADMIN_ITEM_PAGE_CONTENT_TITLE; ?></p>
			</TD>
		</TR>
		
		
		
		<TR>
		<TD>
		
    
    
    <TABLE WIDTH=100% ALIGN="CENTER" CELLPADDING=0 cellspacing="0" BGCOLOR="#FFFFFF">
		
 <? // -------------------------- ERROR BAR --------------------------------------?>    
 

    
    	
			
			          			
			
        <TR VALIGN="TOP">
		<TD WIDTH=125 HEIGHT="31" class="gris">
		 <p> <?=$MSG_AJAX_ADMIN_ITEM_PAGE_CONTENT_DISPLAY_RESERVE;?>	</p>	  </TD>
		<TD HEIGHT="31" WIDTH="418" class="gris">
		  <input type="radio" name="reserve" value="1" <?if($reserve1 == '1') print " CHECKED";?>>
		  
		  <?=$MSG_030;?>
		  
		  <input type="radio" name="reserve" value="0" <?if($reserve1 == '0') print " CHECKED";?>>
		  
		  <?=$MSG_029;?>		   </TD>
	  </TR>
			
			
				<TR VALIGN="TOP">
		<TD WIDTH=125 HEIGHT="31">
		 <p> <?=$MSG_AJAX_ADMIN_ITEM_PAGE_CONTENT_DISPLAY_SAVINGS;?>	</p>	  </TD>
		<TD HEIGHT="31" WIDTH="418">
		  <input type="radio" name="savings" value="1" <?if($savings1 == '1') print " CHECKED";?>>
		  
		  <?=$MSG_030;?>
		  
		  <input type="radio" name="savings" value="0" <?if($savings1 == '0') print " CHECKED";?>>
		  
		  <?=$MSG_029;?>		   </TD>
	  </TR>
    
    <TR VALIGN="TOP">
		<TD WIDTH=125 HEIGHT="31" class="gris">
		 <p> <?=$MSG_AJAX_ADMIN_ITEM_PAGE_CONTENT_DISPLAY_AUTOBIDDER;?>	</p>	  </TD>
		<TD HEIGHT="31" WIDTH="418" class="gris">
		  <input type="radio" name="autobidder" value="1" <?if($autobidder1 == '1') print " CHECKED";?>>
		  
		  <?=$MSG_030;?>
		  
		  <input type="radio" name="autobidder" value="0" <?if($autobidder1 == '0') print " CHECKED";?>>
		  
		  <?=$MSG_029;?>		   </TD>
	  </TR>	         			        
			
		          <TR VALIGN="TOP">
		<TD WIDTH=125 HEIGHT="31" >
		 <p> <?=$MSG_AJAX_ADMIN_ITEM_PAGE_CONTENT_DISPLAY_COUNTER;?>	</p>	  </TD>
		<TD HEIGHT="31" WIDTH="418" >
		  <input type="radio" name="pagecounter" value="1" <?if($page_counter1 == '1') print " CHECKED";?>>
		  
		  <?=$MSG_030;?>
		  
		  <input type="radio" name="pagecounter" value="0" <?if($page_counter1 == '0') print " CHECKED";?>>
		  
		  <?=$MSG_029;?>		   </TD>
	  </TR>	         			        
			
			
			</TABLE>
		
		  <INPUT TYPE=hidden NAME=update VALUE=1 >
		        <INPUT TYPE="submit" NAME="act" VALUE="<? print $MSG_AJAX_ADMIN_UPDATE_SETTINGS; ?>" class="action">
		 </form>
		
		</TD>
		</TR>
	</TABLE>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
